package cn.siat.gene.domain;

import cn.siat.common.core.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 基因组数据
 */
@Data

@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "基因组数据对象", description = "基因组数据")
public class GenomeData implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 基因组数据名称
     */
    @Excel(name = "基因组数据名称", width = 15)
    @ApiModelProperty(value = "基因组数据名称")
    private String name;
    /**
     * 文件类型:1:单gb 2:多gb 3:fa+gtf 4:gb+txt
     */
    @Excel(name = "文件类型", width = 15)
    @ApiModelProperty(value = "文件类型")
    private String type;
    /**
     * 文件数量
     */
    @Excel(name = "文件数量", width = 15)
    @ApiModelProperty(value = "文件数量")
    private Integer count;
    /**
     * 文件总大小
     */
    @Excel(name = "文件总大小", width = 15)
    @ApiModelProperty(value = "文件总大小")
    private Integer size;
    /**
     * 上传状态:1:上传中 2:上传成功 3:上传失败
     */
    @Excel(name = "上传状态:1:上传中 2:上传成功 3:上传失败", width = 15)
    @ApiModelProperty(value = "上传状态:1:上传中 2:上传成功 3:上传失败")
    private Integer status;
    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 上传完成耗时(s)
     */
    @Excel(name = "上传完成耗时(s)", width = 15)
    @ApiModelProperty(value = "上传完成耗时(s)")
    private Integer operateTime;
    /**
     * 对应minio_file id,逗号分隔字符串
     */
    @ApiModelProperty(value = "对应minio_file Md5,逗号分隔字符串")
    private String minioFileMd5Str;

}
